package edu.sctu.practice.class01.xiangkun.assign02.Calculator;

/**
 * Created by xiangkun on 2015/10/8.
 */
public class ProgramEnter {

    public static void getRessult(Rational rational){
        System.out.println("兩數之和：" + rational.plus());
        System.out.println("兩數之差：" + rational.sub());
        System.out.println("兩數相乘：" + rational.multi());
        System.out.println("兩數相除：" + rational.div());
    }

    public static void main(String[] args) {
        Rational ra = new Rational(32,11);
        getRessult(ra);
    }
}
